import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import "swiper/css/swiper.min.css";
import "./styles/iconfont.css";

import TypeNav from "./components/TypeNav/index.vue";
import Pagination from "./components/Pagination/index.vue";

Vue.component("TypeNav", TypeNav);
Vue.component("Pagination", Pagination);

// 判断当前环境是否是开发环境
if (process.env.NODE_ENV === "development") {
  require("./Mock/index");
}

Vue.config.productionTip = false;

new Vue({
  router,
  store,
  render: (h) => h(App),
}).$mount("#app");
